﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EasyCheque
{
    public partial class Content : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(Session["uid"]!=null&&Session["uname"]!=null&&Session["usex"]!=null)
            {
                login_Panel.Visible = true;
                login_Name.Text = Session["uname"].ToString()+" "+(Session["usex"].ToString().Trim()=="男"?"先生":"女士");
            }
        }

        protected void loginout_Click(object sender, EventArgs e)
        {
           Session.Clear();
           Response.Redirect("~/Default.aspx");
        }
    }
}
